package start;

public class Thread02 implements Runnable{

    public static void main(String[] args) {
        Thread thread = new Thread(new Thread02());
        Thread thread1 = new Thread(new Thread02(), "窗口名字");
        thread.start();
        thread1.start();

    }
    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName());

    }
}
